<!DOCTYPE HTML>
<html>
<head>
<title>ListHotkeys | AutoHotkey</title>
<meta name="description" content="The ListHotkeys command displays the hotkeys in use by the current script, whether their subroutines are currently running, and whether they use a hook." />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>ListHotkeys</h1>

<p>显示当前脚本包含的热键, 不论它们的子程序当前是否运行, 也不论它们是否使用<a href="_InstallKeybdHook.htm">键盘</a>或<a href="_InstallMouseHook.htm">鼠标</a>钩子.</p>

<pre class="Syntax"><span class="func">ListHotkeys</span></pre>
<p>此命令等同于在主窗口中选择 View-&gt;Hotkeys 菜单项.</p>
<p>如果某个热键被 <a href="Hotkey.htm">Hotkey</a> 命令禁用, 则在列表中它会显示为 OFF 或 PART("PART" 意思是此热键中只有某些<a href="Hotkey.htm#variant">变体</a>被禁用了).</p>
<p><span class="ver">[v1.1.16+]:</span> 若热键的任何变体使用了非 0 级别的 <a href="_InputLevel.htm">#InputLevel</a>, 将显示此级别(或最小及最大级别).</p>
<p>如果一个热键的子程序当前正在运行, 则显示那个热键的线程总数.</p>
<p>最后, 还会显示热键的类型, 其为下列的其中一个:</p>
<p>reg: 此热键是使用操作系统 RegisterHotkey() 函数实现的.<br>reg(no): 与上面相同, 不过此热键当前不可用(由于不支持, 被禁用或<a href="Suspend.htm">挂起</a>).<br>k-hook: 此热键通过<a href="_InstallKeybdHook.htm">键盘钩子</a>实现.<br>m-hook: 此热键通过<a href="_InstallMouseHook.htm">鼠标钩子</a>实现.<br>2-hooks: 此热键需要以上两种钩子.<br>joypoll: 此热键通过定时轮询操纵杆实现的.</p>
<h2>相关</h2>
<p><a href="_InstallKeybdHook.htm">#InstallKeybdHook</a>, <a href="_InstallMouseHook.htm">#InstallMouseHook</a>, <a href="_UseHook.htm">#UseHook</a>, <a href="KeyHistory.htm">KeyHistory</a>, <a href="ListLines.htm">ListLines</a>, <a href="ListVars.htm">ListVars</a>, <a href="_MaxThreadsPerHotkey.htm">#MaxThreadsPerHotkey</a>, <a href="_MaxHotkeysPerInterval.htm">#MaxHotkeysPerInterval</a></p>
<h2>示例</h2>
<pre class="NoIndent">ListHotkeys</pre>

</body>
</html>